define(['swipe', 'mousemove', 'countdown'], function (obj, mousemove) {
    var w = document.documentElement.offsetWidth > 750 ? 750 : document.documentElement.offsetWidth;
    var swipe_h = 215 / (750 / w);
    var swipe01 = new obj.swipe("#swipe01");
    swipe01.run({ dot: 'rgba(0,0,0,.3)', curr_dot: '#ffffff', height: swipe_h });


    var move01 = new mousemove.move()
    move01.run("#move01");

    var search_box = document.querySelector(".search-box");
    search_box.addEventListener('click', function (event) {
        var url = "http://127.0.0.1:5500/part03/day02/project/search.html"
        document.location.href = url;
    });


    /*
        1、 在特定区域绑定touchmove  ，事件执行完后
        2、 解绑touchmove
    */

    function fn1(event) {
        event.preventDefault && event.preventDefault();
    }
    //取消 移动端 划屏效果
    // document.addEventListener("touchmove", fn1, {
    //     passive: false
    // });

    // document.removeEventListener('touchmove', fn1);

});